/**
 * Created by rongyao on 2017/11/13.
 */
var webpack = require('webpack')

module.exports={
	entry:"./src/index.js",
	output:{
		publicPath:'',
		filename:'bundle.js'
	},
	module:{
		loaders:[
			{
				test:/\.js$/,
				exclude:/node_modules/,
				loader:'babel-loader?presets[]=es2015&presets[]=react'
			},
			{
				test: /\.scss$/,
				loader: ['style-loader','css-loader?moudle','sass-loader'] //这里用了样式分离出来的插件，如果不想分离出来，可以直接这样写 loader:'style!css!sass'
			}
		]
	}
}